package pattern;

/*
 * @author changfei
 * @date  2023/11/28 11:43
 * @description 静态内部类
 */
public class StaticInnerSingleton {

    private StaticInnerSingleton() {
    }
    private static  class InnerClass{
        private static final StaticInnerSingleton staticInnerSingleton=new StaticInnerSingleton();
    }

    public  static  StaticInnerSingleton getInstance(){
        return InnerClass.staticInnerSingleton;
    }
}
